Moved login function to Facebook class