updated login class