Fixed register bug (clear field when ok)