bug fix for login and signup