new feature:redirect to the requested page after login