Added validation for password fileds.
Now checks for passwords being equal.