support for login in register_old
restore to sqlite