Fix field length validation and error msg placement
Merge pull request #779 from achamely/master

Fix field length validation and error msg placement