fixed a little bug in login/signup process