updated number recognition in input field