Added 401 check to user detail page