private void initBindings() {
bindingGroup = new BindingGroup();
minimumLengthValidator = new MinimumLengthValidator(5);
Binding binding = FormHelper.createBinding(this, "staff", "username", usernameField, "text");
binding.setValidator(minimumLengthValidator);
bindingGroup.addBinding(binding);
binding = FormHelper.createBinding(this, "staff", "password", passwordField, "text");
binding.setValidator(minimumLengthValidator);
bindingGroup.addBinding(binding);
binding = FormHelper.createBinding(this, "staff", "firstName", firstNameField, "text");
minimumLengthValidator.setLength(2);
binding.setValidator(minimumLengthValidator);
bindingGroup.addBinding(binding);
binding = FormHelper.createBinding(this, "staff", "lastName", lastNameField, "text");
binding.setValidator(minimumLengthValidator);
bindingGroup.addBinding(binding);
binding = FormHelper.createBinding(this, "staff", "phoneNo", phoneNumberField, "text");
binding.setValidator(new PhoneNumberValidator());
bindingGroup.addBinding(binding);
binding = FormHelper.createBinding(this, "staff", "email", emailField, "text");
binding.setValidator(new EmailValidator());
bindingGroup.addBinding(binding);
binding = FormHelper.createBinding(this, "staff", "joinedDate", joinedDatePicker, "date");
bindingGroup.addBinding(binding);