registration and login pages redirect to main page