used regex validation instead