added user repository, edited user entity