testing login functions