redirect from main page to login page