Fixed form error selector in validate function