inor changes to get password encryption working