Updated views.py added login flag to profile