creates sessions for users to signin and signout