adding a check for success on upload, if not then try register, if still not then fail