Validates your struct