Upgraded JQuery version & improved form validation

JQuery upgrade may break somethings, but I will fix it in future pull requests. Other things which I changed are explained in the commit messages.