Completed remove MAC functionality, about write an input validation class