backend validation for create/update employee