registration now works correctly, validator has been added