What is a better way to allow no user input while also preventing non-number inputs