integer validation wip
trying mutating errors and hash to simpify code