improved SMKAuthenticationController