Created a module for validating the inputted amount