//onkeypress enter to validate range