automatic redirection

fixed automatic redirection from login to authorize page