added client-side validation
Merge pull request #3 from Quadrophone/master

added client-side validation