Fixed login bug

Fixed a bug where login did not work because of decryption.