Added client side validation for the environment input form