some fixes for registration edit