simplifying fb login code