fix login error when user does not exist