adduser is ok, use validation class, add phpdoc generate document.