Change the way redirection is done for AuthenticationBean