Add isAuthorized function into controller