fixed errors in FormHelper