I like to know if there is a way to change isValid to FALSE and add a error message?
I need something like
PHP Code:
$form->setValid('FALSE');
$form->setError('Username not available');
After $form->isValid($request->getPost()
returns TRUE I am checking the db.