Make account password 'required' when needed. Closes #3313.