Android provided a widget called TextInputLayout
This could provide Hint and Error, which is excellent wrapper around EditText.
There's also seemingly a guideline on it in https://material.google.com/patterns/errors.html#errors-user-input-errors
With that, it show Hint and Error. And also it has Helper Text. This is where it is useful for password setup. E.g. before someone enter a password, the ErrorText is show as HelperText, distinguish by a different color (in grey instead of red as per the example).
When I look at TextInputLayout, it does have the two functions
Found this extend version of TextInputLayout. https://gist.github.com/drstranges/1a86965f582f610244d6
This manage to add the Helper Text naturally.