Change one error of encode in views.py (opinions)

Modify the db with new user and data.