finish authentication and authorize for user upload file