Call to a member function getFormValue() on null