removed input type number and added a pattern attribute