Changed imports for the login class, plus added some functionally
necessary code.