better errors
parser for an authentication