putting in formatting and validation