use firebase chat with register