server redirect from the main page to the login page