logout and redirect to login page