fix register , edit redirect