correction of checking form-values