Include validations in check_sum, but has a bug