@RequestMapping(value = "/registration/", method = RequestMethod.POST)
    public String checkDataForm(UserForm userForm, ModelMap model) {
        userForm.setLogin(userForm.getLogin().trim());
        if (!userForm.getLogin().equals("") && userForm.getPassword().equals(userForm.getConfirmPassword())) {
            try {
                userService.saveUser(new User(userForm.getLogin(), userForm.getPassword(), "ROLE_USER"));
                return "registration/successfulRegistration";
            } catch (Exception e) {
                model.put("LoginError", "Wrong Login");
            }
        } else {
            model.put("PasswordError", "Login is empty or passwords are different");
        }
        return "registration/registration";
    }