How to prevent decimal places entered in an input field?