Implemented enum validation on valid id.