@Override
    public void validate() {

        if (uname == null) {

            addActionError("Please Enter User Name");
        }
        if (email == null) {

            addActionError("Please Enter Email Address");
        }
        if (pwd == null) {

            addActionError("Please Enter Password");
        }
        if (confirmpwd == null) {

            addActionError("Please Enter Confirm Password");
        }
        if (!confirmpwd.equals(pwd)) {

            addActionError("Confirm Password and Password Not Match Please Enter Again");
        }
        User user = (User) myDao.getDbsession().get(User.class, email);
        if (user != null) //      addFieldError("email","sorry Email id Already Taken");
        {
            addActionError("Sorry Email id Already Taken");
        }

    }