Added a spec to test for wrong passwords.
Some clean-up.