Fixed bugs with onsuccess and onerror redirects in social controller.