add validation and formatting for LPW