Trouble handling encrypted passwords