added form validation to deployment and scale dialog