fixed validation errors closes issue #9
fixed validation error closes issue #9