Pass user object to upload template (so logout button shows up)