Update models.py

Modified User document class, and overwrote get_id method of UserMixin class.