if error while authenticating move user to homepage