modified login and signup functionality