Add valid home URL hook