fix for AGPUSH-552 now validates the deviceToken