Refactoring login to fit new firebase stuff