add error message and js validate plugin