Move APNs registration so it always happens after logging in