Allow user repository to save additional properties
Validate usernames on update
Tidy-up test code