implemented user login and sign up