Validation rules can also be set by numeric array

Signed-off-by: Samuel Vasko <samvasko@gmail.com>