Added sessions
log-in-log-out works but this needs a huge refactor