defined validation

Okay, tear it apart :)
missing newline