Added validator and test case for validator

validator added for AddEmployee function.