Fix field length validation and error msg placement