started code to retrieve user data from firebase