Make sure the user object exists when using it in the beforeFind