You are double escaping strings here, which does prevent security problems but could cause problems if the password included special characters.