Add length to validation rules. Fixes #43