Added the Redirection

If a user is not logged in and tries to access a login-required page,
once they logged in they are redirected to where they wanted to go