fix: factories for test and uniqness of userid

Fix factories for user to contain password confirmation.
Add making userid uniq if more of the same user is
assigned to project.