fix file uploading max size and validate with js and php