[#4] Added simple validation for one function.