basic implementation of AUTHENTICATE