fix authentication bug when missing arguments