set up user login and user sessions