Added a check in case you try to add urls that are invalid for admin.