After login redirect back to original url; 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 the keep conformity.