Give error if no file is selected when uploading image