modified isValidInput method for validatin the "."

Changed the isValidInput method for validating a single "."
character. Corrected the conditional statement for
setting an error.