changed entity name user to resident to fit the domain model