fixed bug that wouldnt redirect when security exception occured