PHP Class that validates the userinput