implemented external Authentication