bugs that rose from using userid in p[lace of username fixed.