fix custom User model coding in model.py