Added authenitcate method