modify login and video upload method according to new API