Redirect to the intended page after successful sign-in