Fix not detecting fields empty in register user