fix required validation not resetting keys