raise validation exception

fixes #14