Fix authenticate bugs