Cleans up length validation and includes HTML5 option for numericality