Refactor facebook login and signup