Added logout and login requirements