Various fixes & code improvement

- Removed unnecessary identity comparators.
- Fixed variable mis-spellings.
- Corrected parameters for password_verify.