Issue 985 validate email

you can also use here either user_repo.get_by(name=userdict['name']) which will return you only one User instance and is a method which is in every repository or user_repo.get_by_name(userdict['name']) which exists because getting users by name is the most common operation :)