required attributes

create required validator is not always necessary