Change authentication check to be per class instead of per action