Login and registration refactoring. Social registration.