[Bug 864397] Add custom validation to user model

Ref: https://bugzilla.mozilla.org/show_bug.cgi?id=864397

Please review