Fix bug regarding user credentials from ENV variables