redirect to main page on login