Updated views to redirect user to the originally requested URL after logging in