removed echo statement from functions, validated 0 errors to return false