Need help creating a changeset function with multiple fields check both from database and changeset

validate_required would tell if you all the required fields are present or not