defined validation

Okay, tear it apart :)