object validation