finished authorization and firebase saving