Validate object according to set rules