Fix 500 error as request.user is None at this stage