error detection for form data
class clean-up
added MIT license