added the facebook and regular login code