Fixing authenticated check. Had it backwards