moved getApiUsername & getApiPassword methods to a new file