Moved authentication to shared Server object