you can add this code in item-post.php below // Code for form validation like picture contactName: { required: true, minlength: 3 },regard