added validate form
Merge pull request #1 from devilcode/master

added validate form