fixed machine create/update form validation