change validate method for update unique field