Add Login function to Server