cursor for LOGIN