PS-8 Implemented validation for VirtualMachine