Missing else for authentication check, wtf?