add validation for add/edit employee