Basic validation.