Encrypted the passwords and fixed the logout