logout redirects to login page