sign in and sign out methods working