Added getFormName function in FormFactory