Correct Redirection After User Logs in

Now with this, user will be redirected to the page he was trying to access earlier.