Add in check for S3 credentials