add parsley and query scripts
Update html
add error elements
Refactor, clean code and add error messages