public boolean checkLoginForm(Model model, LoginForm loginForm){
        try {
            return userService.checkPassword(loginForm.getEmail(),loginForm.getPassword());
        } catch (NoEmailException e) {
            model.addAttribute("error", "No email: " + e.getEmail());
            return false;
        } catch (IncorrectPasswordException e){
            model.addAttribute("error", "Incorrect password: " + e.getEmail()+e.getPassword());
            return false;
        }
    }