chat working with firebase