Add some UI validation.