Add name and photo in the user model, and fix problems with duplicate e-mail.