regex validation improvement