added social media login plus refactoring