Added an explicit call to the resultcode within the onActivityResult() method. Alongside a validation check.