Restored functionality to sign in / sign out methods.