Redirect to main page after login