Added script to insert external users and to work properly if an externally registered user logs in with facebook.