Implements authenticate methods
Addded space