validaiton with border