fix the bug of login and sign up