modified facebook login code