Implemented sessions for sign in and out