Removed the User(UserRepository) constructor because it's pointless.