registration redirects to the main page