authenticate bug