Added custom validate handler code and hook form_alter().