@Override
    public void validate() {


       if (getEmail().isEmpty()) {

            addActionError("Please Enter Email Address");
        }
     else   if (getPassword().isEmpty()) {

            addActionError("Please Enter Password");
        }
     else{
        User user = (User) myDao.getDbsession().get(User.class, email);
        if (user != null) {

            if (user.getPassword().equals(password)) {
                if (user.getUserStatus().equals(userEnum.Suspend.getUserType())) {
                    addActionError("Your Account Has Been Suspended Temporarily Please Contact Our Customer Services for More Details");
                } else {
                }
            } else {
                // addFieldError("password", "Invalid password");
                addActionError("Invalid password");
            }
        } else {
            //   addFieldError("email", "Invalid Email Address");
            addActionError("Invalid Email Address");
        }
    }
    }