Added logout function to auth.py