Prevent obvious redirect loops being added

Added some form validation to prevent redirects being added from a page
to itself. This includes when the user clicks 'Save' without filling
anything in. The save button is disabled in these cases.