added regex validation