added flash error msg when a user try to upload a non jpg file