Added redirect and error messages as config options