Improved validation.

Replaced HTML 5 validation with Parsley.js validation.