fixed regex in name regex check