Proper redirections on the LoginController
The referer of a visit can be null, because a user might come to the website from nowhere (e.g a bookmark)