Fix - Validation in AJAX caused problem in upload of image