fixed credentials problem

$_ENV replaced