refactor FB logic
Merge branch 'loginAndSignup' into phase1