remove emtpy tr
set username/password values if cookie exists"