added signout logic