fix validation for User.
Merge pull request #10 from popkirby/user_spec_fix

fix validation for User.