[BUGFIX] Password validation for invitations fails when password is not specified

$passwordRepead could be undefined

related: #62016