More bug fixed for login

More bug fixed for login