removes console log from js
updates js to alert when a field is left blank