In this case not exist the getForm() metod ??

Right ??

It is impossible p.getform.isvalid()