adjust credentials for photo uploading