add read code which is read the username and password from the resouces
file userinfo.cfg, but this is only read