Added redirection back to previous page after logging in.
[Finishes #67272606]