Implemented invalidate() and signout()