Replaced existing authorize method with action wrapper

Since calling the method inside an action is done every time authorize is called, the build in ActionBuilder is used so syntax to authenticate users is simplified.