UserFactory for handling the user profiles with Firebase