Implemented Authenticate method