Fixes unchecked bugs in FTP validation file