fix bug in reading username and password from env variables