updated for jquery validations