added register functionality to the facebook login