So all I have to do is replace the attribute password with pattern attribute and give it the value of [a-z0-5] {8, }.