Replaced $login by new Login service for rest of main PHP files.