Login and signup code for user authentication. The users need to authenticate themselves by signing up and then loggin in as per their credentials.