Fixed redirect after successful user authentication