extract validate and errors method of forms into a base form to lessen duplication of code