add the actual form type...
check if class attribute is defined