Added sign in/out functionality for sessions and users