user object validation class