added boolean for unlocked
enabled session, created register and log out