Add form validation. Extend attributes.