create reset function for firebase