added verification for registration