Fixed broken ajax for validations