Use annotations for validation