use annotations for validation of fields