Implement login/logout and redirect to login for all urls