Changed file validation in file handler class.