Updated Authentication class