The AuthenticatesUser class is responsible for authenticating the user as well as knowing if the email and password match the ones in the database. It has two responsibilities, and according to the principle it should only have one, let’s extract one.
I’ve used a refactoring technique called “Extract Class” and then use it on the class I already had, this is called sharing behaviour through “Composition”.