bugfix required = true

if val is an empty string, change to undefined so validation fails
Merge pull request #5 from luka5/master

bugfix required = true