Created UsersRepository and rewrited MailService, adding some methods.