added ability to specify homepage as default redirect target, and added a validation check on redirects immediately before reroute