Prevent navigating before photo upload is done