Fixed bug where it would try to access request.user even if it didn't exist