You want to implement single-field validation
The problem
The solution
Putting it all together
Parent topic:
Coding service-layer implementations