refactor for validation and formatting of max value of FPW