Added sessions for a user, implemented logging in/out