changing credentials to constant and applying them to tasks