How to ensure that a monetary amount is entered in the correct format?