Use jquery.validate for form validation. [Fix #1]