equals should be validated even empty

//the 3rd condition is added so that even empty password fields should be equal
			//otherwise if one is filled and another left empty, the "equal" condition would fail
			//which does not make any sense
Merge pull request #637 from hackle/patch-1

equals should be validated even empty