Working on CSRF framework
Adding error trap around setting content type