Logout, permissions and minor fixes
Save login-attempted email as session to redisplay