form.go
func (f FormErrors) HasErrors() bool {
	if len(f.Errors) > 0 {
		return true
	}
	for _, v := range f.FieldErrors {
		if len(v) > 0 {
			return true
		}
	}
	return false
}
func (f FormErrors) HasErrors() bool {
	if len(f.Errors) > 0 {
		return true
	}
	for _, v := range f.FieldErrors {
		if len(v) > 0 {
			return true
		}
	}
	return false
}
// HasErrors returns weather FormErrors instance contains at leas one error.