Implemented the isRegistered method