Updated PlAuthentication class.