added login and upload script