implemented login and signup flow