working fb login $watch and $rootscope.$apply functionality added in