func (form *CommentAdminForm) Valid(v *validation.Validation) { user := models.User{Id: form.User} if user.Read() != nil { v.SetError("User", "admin.not_found_by_id") } post := models.Post{Id: form.Post} if post.Read() != nil { v.SetError("Post", "admin.not_found_by_id") } }