more bug fixing the login.