After login redirect back to original url for routes that require authentication; Fixes #454 

Fixes #454 
Ref #451

The first commit added the actual code to redirect back when logged in.
The second commit removes the redundant check if user exists.
The third commit is to keep conformity.