Updated HTMLs and registration and login flow

Updated HTMLs and registration and login flow to update device id in
separate call.