handle firebase errors