#28: Redirect to the previous page after signing in