Adding before_filter for authorize.