Older login class that will be revised to match new DB class