Added a verification for name comparison