Added js validations. Errors display near appropriate fields.