added sign in and sign out methods and sessions