adds a basic form validation to the role CRUD