refactor to have facebook login