Added usePassword checkbox, required depends on that checkbox.