add `closing` for python 2.6 compatibility
basic deploy form validation