Changed way gets credentials

Removed the hardcoding of the security credentials