updated for social media auth