User repository now used to create entities