Fix user password matching verification closes #335.