Fixed password hashing bug, aligned session tests with user views.