fixes #13 - form validation