Fix. Redirect to main page after registration