Validation error in 10.3

Hi,

I am adding validation in signup form, through "evolutionValidation". But whenever I am removing all the value from input field, page is getting redirect. Using below code

joinButton.evolutionValidation({
onValidated: function (isValid, buttonClicked, c) {
console.log("Check 7");
if (isValid) {
context.elements.createAccountLink.removeClass('disabled');
} else {
// avoid IE7/8 non-reflowing bug

$('.join-password').css({ position: 'relative' });
}
},
onSuccessfulClick: function (e) {
e.preventDefault();
$(e.target).trigger('join');
submit(context);
}
});


joinButton.evolutionValidation('addField',
context.inputs.username[0],
{
required: true,
minlength: 6,
maxlength: 20,
username: true,
usernameexists: true,
messages: {
username: context.resources.usernameInvalidUserName,
usernameexists: context.resources.usernameDuplicateUserName,
required: context.resources.fieldRequired
}
},
context.inputs.username.closest('.field-item').find('.field-item-validation'), null);