import wergzeug.security, and edited line 119 to have id=user.username