Add code to  main.js to validate the form field for Buy Section.