changed include to require and fixed validation bugs