Validate password each time a key is pressed