moved validate() to onsubmit
removed unnecessary ids