30.08.2013, 11:13
You used for max lenght the lenght of "pass" (Field). If you input "password", it will only check for the first 4 characters. Removing the lenght since it's optional will fix it. Oh and by the way, be sure you check that the strings are not null. They returns false as well.