middle of getting error validation to work