Authorize section not getting called