Modified the app/views.py file.
Added logic for the user's last_seen in the before_request handler.