@RequestMapping(value = "/settings", method = RequestMethod.POST)
    public String createHomePageItem(/*@Valid*/ @ModelAttribute HomePageItem homePageItem,
//                                   BindingResult bindingResult,
                                     @RequestParam MultipartFile file){
//        if(bindingResult.hasErrors()){
//            return "settings";
//        }
        try {
            VehicleStoreUtil.validateImage(file);
        } catch (Exception e) {
//            bindingResult.reject(e.getMessage());
            return "settings";
        }
        homePageItem.setImageName(file.getOriginalFilename());
        homePageItem.setImageContentType(file.getContentType());
        try {
            homePageItem.setImageData(file.getBytes());
        } catch (IOException e) {
            e.printStackTrace();
        }
        homePageItemService.saveItem(homePageItem);

        return "redirect:/settings";
    }