Connect post page to firebase