changing flow for login and signup