add inputs var to main.js
add form validation empty input check