refactored login
Merge pull request #87 from wlabranche/refactor/fblogin

refactored login