Updated Deployment Script to include Environment Validattion