Wrote better validation calls for variable values
Added call for plugin API class
Changed visibility of validate_user() method