fixes #6067 - UI inconsistency around root password limit 8 characters

move to host_common?