first crack at object validation