Incorporate login into library