auto log in
log out and view refacturing
Permissions check