Remove unnecessary lines from edit registration