fixed redirection login for newly registered users