Updated Hook and Config to allow for redirect if denied