Proper redirection after logging in

- Fixed, accessing page while not being logged in, redirects to
unauthorized page, but the one which was specified.