Updated the user model example to properly integrate with the Flask-Login extension