Should detect when already has attribute & should disallow duplicate attributes