Application controller authenticate method, fixing context for assigning the currentUser variable