error fixed, tests passing, password encrypted