A step by step tutorial to validated a form using basic JavaScript no libraries