now using the login in the new class