on login, creates reg_id and sends to backend

I have not tested this at all, btw