Not really, but it is the way it is done for registration, and I think it's better. Otherwise we would have a green OK if the two passwords are the same but too short. I prefer letting everything be red to make sure the user knows its wrong to have a short password :) 
(Note that I would try to implement a password strength meter soon instead of just checking the password length, it would be better !)