fix mail registration