Fixed file validation

I think the only situation when file is correct is in case UPLOAD_ERR_OK. If any other state then there is an error. If php developers will introduce new constant then in default state validation will always pass. But validation have to pass in UPLOAD_ERR_OK case only.