fixed form validation, removed console logs, commented js