fixing authentication redirection
minor