Change extends class to AbstractAuthenticationService
Fix indentation
Add login_type parameter.