Fix login to key off the right database column